package cn.tedu.csmallproducts.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BrandAddNewDTO implements Serializable {

    @ApiModelProperty(value = "品牌名称", required = true, example = "演示品牌")
    @NotNull(message = "必须填写品牌名称")
    private String name;

    @ApiModelProperty(value = "品牌拼音", required = true, example = "拼音数据001")
    @NotNull(message = "必须填写品牌名称")
    private String pinyin;

    @ApiModelProperty(value = "品牌logo", required = true, example = "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png")
    @NotNull(message = "必须填写品牌logo")
    private String logo;

    @ApiModelProperty(value = "品牌简介", required = true, example = "这是一个品牌")
    @NotNull(message = "必须填写品牌简介")
    private String description;

    @ApiModelProperty(value = "品牌关键字", required = true, example = "关键字1、关键字2")
    @NotNull(message = "必须填写品牌关键字")
    private String keywords;

    @ApiModelProperty(value = "品牌", required = true, example = "1")
    @NotNull(message = "必须填写品牌名称排序")
    private Integer sort;

    @ApiModelProperty(value = "品牌销量", required = true, example = "33")
    private Integer sales;

    @ApiModelProperty(value = "商品总类数量", required = true, example = "22")
    private Integer productCount;

    @ApiModelProperty(value = "买家评论数量", required = true, example = "33")
    private Integer commentCount;

    @ApiModelProperty(value = "买家好评数量", required = true, example = "44")
    private Integer positiveCommentCount;

    @ApiModelProperty(value = "是否启用", required = true, example = "1")
    @NotNull(message = "必须填写是否启用")
    private Integer enable;
}
